package com.ocom.payhandle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.card.EntityXfRecordProcess;
import com.ocom.common.entity.card.EntityXfRecordProcessExxx;
import com.ocom.common.entity.card.EntiyXfDiscountConfig;

import java.util.Date;
import java.util.List;

public interface XfDiscountConfigServcie extends IService<EntiyXfDiscountConfig> {

    Integer selectSiscount(Long companyId, Long pId, Integer accountType, Integer consType , Date consDate
            , Integer consMeal, Integer realAmount, EntityXfRecordProcess entityXfRecordProcess);

    Integer getDiscount(Long companyId, Long pId, Integer accountType, Integer consType , Date consDate
            , Integer consMeal, Integer realAmount, EntityXfRecordProcess entityXfRecordProcess);

    Integer getDiscountProcess(Long companyId, Long pId, Integer accountType, Integer consType , Date consDate
            , Integer consMeal, Integer realAmount, EntityXfRecordProcess entityXfRecordProcess,List<EntityXfRecordProcessExxx> processExxxList);

    public int existDiscount(Long companyId,Integer mealNo, Integer accountType,Integer consType,Integer timeZone);

    public Integer selectSiscountInner(Long companyId, Long pId, Integer accountType, Integer consType, Date consDate, Integer consMeal,
                                       Integer realAmount, EntityXfRecordProcess entityXfRecordProcess,List<EntityXfRecordProcessExxx> processExxxList) ;

    Integer selectSiscountBatch(Long companyId, EntityXfRecordProcess entityXfRecordProcess, List<EntityXfRecordProcessExxx> processExxxList);
}
